package com.xh.bussiness.course.dao;

import com.xh.bussiness.course.bean.request.PrepareLessonRequest;
import com.xh.bussiness.course.model.PrepareLesson;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xh.bussiness.resource.bean.dto.MaterialDto;
import com.xh.bussiness.resource.bean.request.MaterialCourseIndexRequest;
import com.xh.core.bean.XhPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Pitt
 * @since 2020-12-15
 */
public interface PrepareLessonMapper extends BaseMapper<PrepareLesson> {

    XhPage<Map<String, Object>> queryPrepareLessonByPage(@Param("page") XhPage page, @Param("bean") PrepareLessonRequest bean);

    List<PrepareLesson> queryAllList(@Param("bean") PrepareLessonRequest bean);

    List<MaterialDto> queryMaterialById(@Param("prepareLessonId") String prepareLessonId,@Param("type") Integer type);

}
